package com.haojin.JAVA1;

public class Student extends Person{

	String major;
	
	public Student(){
		
	}
	public Student(String major){
		this.major = major;
	}
	
	public void study(){
		System.out.println("学习，专业是："+major);
	}
	
//	对父类中的eat方法进行了重写
	public void eat(){
		System.out.println("大吃特吃");
	}
	
}
